<%@ taglib uri="/WEB-INF/taglib/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/taglib/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/taglib/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/taglib/struts-tiles.tld" prefix="tiles" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<html:messages id="messages" message="true">
  <div id="messages">
	<p><bean:write name="messages"/><p>
  </div>
</html:messages>

<fieldset id="viewProfile_fieldset">
	<legend><bean:message key="profil.view.legend" /> ${profile.login}</legend>

	<p><bean:message key="profil.view.account" />
		<ul>
		<c:if test="${profile.freelance}">
			<li><bean:message key="profil.view.freelance" /></li>
		</c:if>
		<c:if test="${profile.manager}">
			<li><bean:message key="profil.view.manager" /></li>
		</c:if>
		</ul>
	</p>

	<p><bean:message key="profil.view.names" /></p>
	<blockquote>
		${profile.firstName} ${profile.lastName}<bean:message key="profil.view.bday" /> ${profile.birthday}
	</blockquote>

	<p><bean:message key="profil.view.email" /></p>
	<blockquote>
		${profile.email}
		<c:if test="${profile.emailAnonyme}">
			<bean:message key="profil.view.anonyme" />
		</c:if>
	</blockquote>

	<p><bean:message key="profil.view.website" /></p>
	<blockquote><html:link href="${profile.website}" target="_blank">${profile.website}</html:link> </blockquote>

	<p><bean:message key="profil.view.description" /></p>
	<blockquote>${profile.description}</blockquote>

	<c:if test="${profile.salary} != 0.0">
		<p><bean:message key="profil.view.salary" /></p>
		<blockquote>${profile.salary} <bean:message key="profile.salary.change" /></blockquote>
	</c:if>

</fieldset>

<p>
	<html:link page="/profile.do?cmd=toUpdate"><bean:message key="profile.modify.profile" /></html:link>
	<html:link page="/books.do?cmd=viewBooks"><bean:message key="profile.view.books" /></html:link>
	<html:link page="/skills.do?cmd=viewSkills"><bean:message key="profile.view.skills" /></html:link>
	<html:link page="/project.do?cmd=create"><bean:message key="profile.view.addproject" /></html:link>
</p>
